package com.libbase.activity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.Gravity;
import android.view.View;
import android.widget.Button;
import android.widget.FrameLayout;

import com.base.activity.BaseActivity;
import com.libbase.R;
import com.libbase.widget.QQpoint;
import com.libbase.widget.WaveView;

import butterknife.BindView;
import butterknife.ButterKnife;

public class QQPointActivity extends BaseActivity {
    @BindView(R.id.fl)
    FrameLayout fl;

    @BindView(R.id.bt_qqpoint)
    QQpoint qQpoint;

    public static void startActivity(Context context) {
        Intent intent = new Intent(context, QQPointActivity.class);
        context.startActivity(intent);
    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_qqpoint;
    }

    @Override
    protected void initView(Bundle savedInstanceState) {
        ButterKnife.bind(this);
        Button button = new Button(this);
        button.setText("reset");
        FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(FrameLayout.LayoutParams.MATCH_PARENT, FrameLayout.LayoutParams.WRAP_CONTENT, Gravity.BOTTOM);
        ((FrameLayout) findViewById(R.id.fl)).addView(button, layoutParams);
        button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                qQpoint.reset();
            }
        });
    }

    @Override
    protected void release() {

    }
}
